<?php
// System definisions
define("PATH_SLASH",    "\\");
define("PS",            PATH_SLASH);
define("SYSTEM_DIR",    "system");
define("SITE_ROOT",     realpath(dirname(__FILE__)).PS);
define("SYSTEM_ROOT",   SITE_ROOT.SYSTEM_DIR.PS);


require_once SYSTEM_ROOT."ini.inc.php5";
inc_class("sys");
inc_class("component");
inc_class("pcre");
inc_class("cubic");

$cubic = new cubic();

$page = new component();


//filedump($page->xml->GetDomXsl("misc2xhtml")->saveXML());
//filedump($page->xml->GetDomXml("thoughts")->saveXML());
//filedump($page->xml->GetDomXml("thoughts")->saveXML());
$ret = $page->xml->Transform("thoughts", "misc2xhtml");
die(pcre::replace("^".pcre::escape("<?").".*?".pcre::escape("?>"), "", $ret->saveXML()));
?>